package com.qfedu.openplateform.manager.service.impl;

import com.qfedu.openplateform.manager.dao.AppInfoMapper;
import com.qfedu.openplateform.manager.entity.AppInfo;
import com.qfedu.openplateform.manager.service.AppInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AppInfoServiceImpl implements AppInfoService {

    @Autowired
    private AppInfoMapper appInfoMapper;

    @Override
    public List<AppInfo> getAppInfoList() {

        return appInfoMapper.getAppInfoList();
    }

    @Override
    public String addAppInfo(AppInfo appInfo) {
        appInfoMapper.addAppInfo(appInfo);
        return "success";
    }

    @Override
    public String del(Integer[] ids) {
        appInfoMapper.del(ids);
        return "success";
    }

    @Override
    public String update(AppInfo appInfo) {
        appInfoMapper.update(appInfo);
        return "success";
    }
}
